package printer;

public class Printer {
    public void print(Ink ink,Paper paper,Object obj){
        System.out.println("打印机开始打印：");
        System.out.println("使用"+ink.getColor()+"墨水");
        System.out.println("使用"+paper.getSize()+"纸张");
        System.out.println("打印内容："+obj.toString());
    }

    @Override
    public String toString() {
        return "我是一台打印机";
    }
}
